﻿using System.Collections.Generic;
using hello.csharp.domain.Base;

namespace hello.csharp.domain
{
    /// <summary>
    ///     文章
    /// </summary>
    public abstract class Article : BaseNosqlRecord
    {
        /// <summary>
        ///     本文章实体的创建者
        /// </summary>
        public User User { get; set; }

        /// <summary>
        ///     文本
        /// </summary>
        public string Text { get; set; }

        /// <summary>
        ///     录音
        /// </summary>
        public List<string> Recordings { get; set; }

        /// <summary>
        ///     图片
        /// </summary>
        public List<string> Images { get; set; }

        /// <summary>
        ///     视频
        /// </summary>
        public List<string> Videos { get; set; }

        /// <summary>
        ///     附件
        /// </summary>
        public List<string> Attachments { get; set; }

        /// <summary>
        ///     链接
        /// </summary>
        public List<string> Links { get; set; }

        /// <summary>
        ///     评论
        /// </summary>
        public List<Comment> Comments { get; set; } = new List<Comment>(0);
    }
}